package com.cloud.basic.lambda.usage;

public class MyTestDemo implements TestDemo1,TestDemo2{

    public static void main(String[] args) {
        MyTestDemo myTestDemo = new MyTestDemo();
        //直接调用helloWorld()方法
        myTestDemo.helloWorld();    //输出结果为：helloWorld belong to TestDemo1
    }

    @Override
    public void helloWorld() {
        System.out.println("helloWorld belong to MyTestDemo");
    }
}
